//
//  LYFont.m
//  AqualPolo
//
//  Created by dong on 2024/5/1.
//

#import "LYFont.h"

@implementation LYFont


+ (UIFont *)fontWithSize:(CGFloat)size fontName:(LYFontName)fontName{
    UIFont *font = [UIFont fontWithName:[LYFont fontName:fontName] size:size];
    return font;
}

+ (NSString *)fontName:(LYFontName)fontName{
    switch (fontName) {
        case LYFontNamepfr:
            return @"PingFangSC-Regular";
            break;
        case LYFontNamepfb:
            return @"PingFangSC-Semibold";
            break;
        case LYFontNamepfm:
            return @"PingFangSC-Medium";
            break;
        case LYFontNamehvb:
            return @"Helvetica-Bold";
            break;
        case LYFontNamehvl:
            return @"Helvetica-Light";
            break;
        case LYFontNamehvo:
            return @"Helvetica-Oblique";
            break;
        case LYFontNamehvbo:
            return @"Helvetica-BoldOblique";
            break;
        case LYFontNamehvlo:
            return @"Helvetica-LightOblique";
            break;
        default:
            return @"PingFangSC-Regular";
            break;
    }
}

@end
